import { dispatch } from '../../../utils/dispatcher';
import { Application , BackendSession} from 'pinus';
import route_util from '../../../utils/route_util';
 
export default function (app: Application) {
    return new GateHandler(app);
}

export class GateHandler {
    constructor(private app: Application) {
    }

    /**
     * Gate handler that dispatch user to connectors.
     *
     * @param {Object} msg message from client
     * @param {Object} session
     * @param {Function} next next stemp callback
     *
     */
    async queryEntry(msg: {uid: string}, session: BackendSession) {

     
        // get all connectors
        return route_util.gate(this.app);
    }
}